package com.ffox.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * 课程列表
 * </p>
 *
 * @author freefox
 * @since 2025-09-05
 */
@Getter
@Setter
@ToString
@TableName("course_list")
public class CourseList {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程标题
     */
    @TableField("title")
    private String title;

    /**
     * 课程内容
     */
    @TableField("content")
    private String content;

    /**
     * 上传用户number
     */
    @TableField("user_num")
    private String userNum;

    /**
     * 账户状态：1-正常 0-禁用
     */
    @TableField("status")
    private Byte status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
